<?php
    $news_cat = get_category_by_slug( 'novidades' );
	$news_link = get_category_link( $news_cat->term_id );
	$news_name = $news_cat->name;
	
    $args = array(
		'category'    => $news_id,
		'post_status' => 'publish',
		'post_type'   => 'post',
		'numberposts' => 4,
	);
    $news = get_posts($args);
	if ( count($news) > 0 ) :
?>
<div id="news-box">
<h1 class="box-title news-title title"><a href="<?php echo $news_link; ?>"><?php echo $news_name; ?></a></h1>
<ul class="box-list yui-cssbase">
<?php 
	foreach ( $news as $entry ) {
		$url = get_permalink($entry->ID);
		$title = $entry->post_title;
		echo "<li class='box-list-item'><a href='$url'>$title</a></li>\n";
	}
?>
</ul>
</div>
<?php endif; ?>